:root {
    --primary-color: #1a73e8;
    --hover-color: #1557b0;
    --error-color: #dc3545;
    --success-color: #28a745;
    --background-color: #f8f9fa;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.form-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.form-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all var(--transition-speed) ease;
    background-color: white;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input:hover {
    border-color: #bdc3c7;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.captcha-container {
    display: flex;
    gap: 0.75rem;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    height: 2.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid #e0e0e0;
}

.captcha-image:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    background-color: var(--hover-color);
}

.form-button:active {
    transform: scale(0.98);
}

.form-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.form-button:active::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

.form-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 0.25rem;
}

.form-link:hover {
    color: var(--hover-color);
}

.form-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--hover-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.form-link:hover::after {
    width: 30px;
}

.message {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 添加精致的页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.08);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.15);
    position: relative;
}

.message.success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--success-color);
    opacity: 0.7;
    border-radius: 3px 0 0 3px;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--error-color);
    border: 1px solid rgba(220, 53, 69, 0.15);
    position: relative;
}

.message.error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--error-color);
    opacity: 0.7;
    border-radius: 3px 0 0 3px;
}